package com.ybkj.o2o.zhuanche.common;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;


public class OrderFromSourceVo {

  private String fromSource;// 订单类型

  private List<MemberOrderVo> memberOrderVoList;// 明细

  private long amount;// 单数

  private BigDecimal money;// 金额

  public List<MemberOrderVo> getMemberOrderVoList() {
    return memberOrderVoList;
  }

  public void setMemberOrderVoList(List<MemberOrderVo> memberOrderVoList) {
    this.memberOrderVoList = memberOrderVoList;
  }

  public String getFromSource() {
    return fromSource;
  }

  public void setFromSource(String fromSource) {
    this.fromSource = fromSource;
  }

  public long getAmount() {
    return amount;
  }

  public void setAmount(long amount) {
    this.amount = amount;
  }
  /**
   * 金额为空时放回0.
   * @return 金额.
   */
  
  public BigDecimal getMoney() {
    if (null == money) {
      return new BigDecimal(BigInteger.ZERO);
    }
    return money;
  }

  public void setMoney(BigDecimal money) {
    this.money = money;
  }


}
